package com.zyx.creditcard.apply.entity;

import lombok.Getter;
import lombok.Setter;

/**
 * @author Yaxi.Zhang
 * @since 2022/7/10 08:02
 * desc: 信用卡申请信息
 */
@Setter
@Getter
public class CreditCardApplyInfo {
    private String name;
    private String sex;
    private int age;
    private String education;
    private String telephone;
    /** 月收入 */
    private double monthlyIncome = 0;
    private String address;
    /** 是否有房 */
    private boolean hasHouse = false;
    /** 是否有车 */
    private boolean hasCar = false;
    /** 现持有信用卡数量 */
    private int hasCreditCardCount = 0;
    /** 审核是否通过 */
    private boolean checkResult = true;
    /** 额度 */
    private double quota = 0;

    @Override
    public String toString() {
        if (checkResult) {
            return "审核通过，信用卡额度为：" + quota;
        } else {
            return "审核不通过";
        }
    }
}
